package cn.yunhe.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * 主帖实体类
 * 
 * @author qph
 *
 */
public class Topic {
	private int id; // 主贴编号
	private String title; // 主帖标题
	private String content;// 主帖内容
	private String createTime;// 主帖创建时间
	/*private int userId;
	private int bid;*/
	private User user;//发帖人信息
	private Board board;//所属版块 信息
	private int isDeleted;
	
	
	public Topic() {
		
		
	}
	public Topic(int tid) {
		this.id=tid;
		
	}
	

	public Topic(String title, String content, String createTime, User user, Board board) {
		super();
		this.title = title;
		this.content = content;
		this.createTime = createTime;
		this.user = user;
		this.board = board;
	}
	public Topic(String title, String content, String createTime) {
		super();
		this.title = title;
		this.content = content;
		this.createTime = createTime;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Board getBoard() {
		return board;
	}

	public void setBoard(Board board) {
		this.board = board;
	}

	public int getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(int isDeleted) {
		this.isDeleted = isDeleted;
	}
   

	
	

}
